const mongoose = require('mongoose');
const schemas = require('./schemas');//加载Schema配置项
let createModel = (modelName,schema) => mongoose.model(modelName,schema);
const User = createModel('User',schemas.userSchema);//传入模块名称和配置项【传参类型】

module.exports = { User };